(0) Obligation:
Runtime Complexity TRS:
The TRS R consists of the following rules:
minus(x, y) → cond(equal(min(x, y), y), x, y)
cond(true, x, y) → s(minus(x, s(y)))
min(0, v) → 0
min(u, 0) → 0
min(s(u), s(v)) → s(min(u, v))
equal(0, 0) → true
equal(s(x), 0) → false
equal(0, s(y)) → false
equal(s(x), s(y)) → equal(x, y)
Rewrite Strategy: INNERMOST
(1) DecreasingLoopProof (EQUIVALENT transformation)
The following loop(s) give(s) rise to the lower bound Ω(n1):
The rewrite sequence
min(s(u), s(v)) →+ s(min(u, v))
gives rise to a decreasing loop by considering the right hand sides subterm at position [0].
The pumping substitution is [u / s(u), v / s(v)].
The result substitution is [ ].
(2) BOUNDS(n^1, INF)